/**
 * Contains any functions for the colour type.
 * @file colour.cpp
 * @see http://code.google.com/p/mega8-hob/source/browse/trunk/colour.cpp
 * @author Hamish Cumming & Brian Thorne
 * @version see SVN revision number
 */

#include "colour.h"
/**
 * Compare two colours, and return true if all elements are equal
 * Couldn't use operator overload.
 * @param c1 One of the colours to compare.
 * @param c2 The other colour to compare.
 * @return Boolean answer of are they the same colour or not.
 */
int compare_colours(colour_t c1,colour_t c2)
{
    return (c1.r==c2.r && c1.g==c2.g && c1.b==c2.b);
}
